package ch.sv7.tool.dbmanager.db.difference;

import ch.sv7.tool.dbmanager.db.ColumnSchema;

public class ColumnAutoIncrementDifference extends AbstractColumnDifference {

	private boolean defaultAutoIncrement;
	
	public ColumnAutoIncrementDifference( 
			ColumnSchema expectedColumnSchema, 
			ColumnSchema actualColumnSchema,
			boolean defaultAutoIncrement,
			boolean actualAutoIncrement
			) {
		super(expectedColumnSchema, actualColumnSchema);
		this.defaultAutoIncrement = defaultAutoIncrement;
	}

	public String getMessage() {
		if (defaultAutoIncrement){
			return super.getMessage() + " is not auto incremented but should be";			
		} else {
			return super.getMessage() + " is auto incremented but should not";
		} 
	}



	public boolean isBlocker() {
		return true;
	}
		
}
